package com.cy.sys.service.Impl;

import com.cy.sys.mapper.ClassifyMapper;
import com.cy.sys.pojo.Classify;
import com.cy.sys.service.ClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ClassifyServiceImpl implements ClassifyService {

    @Autowired
    private ClassifyMapper classifyMapper;



    @Override
    public List<Classify> findAll() {
        List<Classify> classifyList = classifyMapper.selectAll();
        return classifyList;
    }

    @Override
    public Classify findById(Integer id) {
        return classifyMapper.selectById(id);
    }

    @Override
    public int saveClassify(Classify entity) {
        return classifyMapper.insertClassify(entity);
    }
}
